home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000123_icon-group-sender _Fri Jun 7 15:30:50 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 10 Jun 1996 07:59:31 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 7 Jun 1996 15:30:50 -0500
  4. From: nr@cs.purdue.edu (Norman Ramsey)
  5. Message-Id: <4pa3hq$lpc@labrador.cs.purdue.edu>
  6. Organization: Department of Computer Science, Purdue University
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <199606071540.LAA18004@morgoth>
  9. Subject: Re: m3 should have SWAP(a,b)
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: O
  12.  
  13. In article <199606071540.LAA18004@morgoth>,
  14. Warren Smith <wds@research.nj.nec.com> wrote:
  15.  >R.W.Floyd pointed out the desirability of
  16.  >   a <--> b
  17.  >and
  18.  >  (a,b,c) <-- (f,g,h)     
  19.  >swap and simultaneous assignment - primitives in his Turing
  20.  >award lecture about 20 years ago, but so far as I know, the SWAP
  21.  >recommendation has not been provided in a common language
  22.  >since then. 
  23.  
  24. Icon has swap, notated :=:
  25.  
  26. I've wished for multiple assignment many times but have never seen it
  27. outside of the LISP family, where it masquerades as `let'.
  28. I can't remember; does M3 WITH evaluate all right-hand sides before
  29. binding? 
  30.  
  31. N
  32. -- 
  33. Norman Ramsey
  34. http://www.cs.purdue.edu/homes/nr
  35.